package lesson18;

public class AbstractionDemos {

	public static void main(String[] args) {
		
		//Human human = new Human();
		//human.breathe();
		//human.makeNoise();
		
		//Mammal mammal = new Human();
		//mammal.breathe();
		//mammal.makeNoise();
		
		//Mammal human2 = new Human();
		//human2.breathe();
		//human2.makeNoise();
		
		//Mammal cat = new Cat();
		//cat.breathe();
		//cat.makeNoise();
		
		Zoo myZoo = new Zoo();
		myZoo.mammals[0] = new Cat();
		myZoo.mammals[1] = new Human();
		//myZoo.makeAllAnimalsNoisy();
		
		myZoo.allAnimalsGiveBirth();
		myZoo.allAnimalsStayStill();
		myZoo.allAnimalsWalk();
		
		System.out.println("***********");
		System.out.println(myZoo.mammals[0] instanceof Mammal);
		System.out.println(myZoo.mammals[0] instanceof Movable);
		System.out.println("***********");
		
	}

}
